# Maintainer: Thomas Liske <thomas@fiasko-nw.net>
pkgname=py3-pyroute2.nslink
_pkgname=pyroute2.nslink
pkgver=0.6.9
pkgrel=0
pkgdesc="Python Netlink library: NetNS, NSPopen and remote modules"
url="https://github.com/svinota/pyroute2"
arch="noarch"
license="GPL-2.0-or-later OR Apache-2.0"
makedepends="py3-setuptools"
depends="py3-pyroute2.core"
options="!check" # not supported for pr2modules namespace
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
1be495ebb5220d88b48fb9d1c1c1a75824c7b1beaa2d4765abd494b1948dde55f6c992fa5b02d4eee483c2b012e357a365db1d6c78db0cf559784e5a03cc7ae5  pyroute2.nslink-0.6.9.tar.gz
"
